﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchBox.ascx.cs" Inherits="Views_Articles_SearchBox" %>

<script language="javascript" type="text/javascript">
	function checkEnter(e) {
		var keynum;

		if (window.event)	// IE
		{
			keynum = e.keyCode;
		}
		else if (e.which)	// Netscape/Firefox/Opera
		{
			keynum = e.which;
		}

		if (keynum == 13)
			(document.getElementById("<%=btn_Search.ClientID %>")).focus();
	}
</script>

<table>
	<tr>
		<td>
			<asp:TextBox runat="server" ID="tb_Search" CssClass="SearchBox" onKeyDown="checkEnter(event)"></asp:TextBox>
		</td>
		<td>
			<asp:Button runat="server" ID="btn_Search" Text="Search" CssClass="Btn_ColF" Font-Size="12px" />
		</td>
	</tr>
</table>
